package com.ibeeking.found.cop.service.common.dos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ibeeking.found.common.base.BaseDO;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName  KfFriendsMessageDO
 * @Description 客服接待客户消息表
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@Data
@TableName("kf_friends_message")
public class KfFriendsMessageDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = -1L;
    /**
     * 客服在企微的OpenID
     */
    @TableField(value = "message_code")
    private String messageCode;
    /**
     * 客服账号IdID
     */
    @TableField(value = "account_id")
    private Long accountId;

    /**
     * 客服在企微的OpenID
     */
    @TableField(value = "open_kfid")
    private String openKfid;

    /**
     * 员工id
     */
    @TableField(value = "employee_id")
    private Long employeeId;
    /**
     * 员工Code
     */
    @TableField(value = "employee_code")
    private String employeeCode;
    /**
     * 接待的部门id
     */
    @TableField(value = "department_id")
    private Long departmentId;
    /**
     * 客户id
     */
    @TableField(value = "friends_id")
    private Long friendsId;
    /**
     * 客户code，企微的external_userid
     */
    @TableField(value = "friends_code")
    private String friendsCode;
    /**
     * 消息类型；text；image；video
     */
    @TableField(value = "msg_type")
    private String msgType;
    /**
     * 消息来源。3-微信客户发送的消息 4-系统推送的事件消息 5-接待人员在企业微信客户端发送的消息
     */
    @TableField(value = "source_from")
    private Integer sourceFrom;
    /**
     * 消息发送时间
     */
    @TableField(value = "send_time")
    private LocalDateTime sendTime;
    /**
     * 消息内容Json
     */
    @TableField(value = "msg_content")
    private String msgContent;
    /**
     * 同步状态：0=未同步；1=已同步
     */
    @TableField(value = "sync_status")
    private Integer syncStatus;
}
